<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath }/statics/css/homePage.css">
  
  <script type="text/javascript"  src="${pageContext.request.contextPath }/statics/js/jquery-1.8.3.js"  ></script>

  
  
  <body>
  <div class=“BigImg”>
    <img class="logo" src="${pageContext.request.contextPath }/statics/images/Logo.gif"><font size="7px;" class="t" face="微软雅黑">北大青鸟|</font><font size="6px;" class="t1" face="微软雅黑">BeidaJadeBird</font>
  
 <div class="BigImg-one">
  
  <img class="BigImg-one-img" src="${pageContext.request.contextPath }/statics/images/bei.jpg">
  <div class="submit-form">  </div>
  <span class="title"><font face="微软雅黑" size="5px;"><strong>用户登录</strong></font><font face="微软雅黑" >    LoginUser         </font></span>
  <form class="form"  action="login" method="post">
 <span class="Uname"><input type="text"  placeholder="用户名 ："   name="phone"  class="name"><span class="tip user_hint"></span><br></span>
 <span class="Upwd"><input type="password" placeholder="密码 ：" name="password"  class="pwd"><span class="tip password_hint"></span></span> <br>
 <input type="checkbox"  /><font face="微软雅黑" size="2px;">自动登录</font><br>
 <br>
  <input type="submit" value="登录" class="submit">
    <font face="微软雅黑" size="2px;" style="position: absolute;top:270px;color: #FFFFFF;">如果有问题请联系010-29865<a href="goregister" style="position: absolute;right: -180px;">注册</a></font>
  </form>  

  </div>

  </div>
  
  <div>
  <font face="微软雅黑" size="2px;" style="position: absolute;bottom: 20px;left:30%;">Copyright @ 2017  北大青鸟本网站只供内部人员浏览，未经同意，不允许转载资料披漏</font>
  
  </div>
    <script type="text/javascript">
  

	$(function(){
	
		var url = document.referrer;
		if("${error}"!=0&&url!=""){
		 alert('${error}');
		}
		

		var user_Boolean = false;
		var password_Boolean = false;
	
		
		$('.name').blur(function(){

	
			  if ($(".name").val()==""){
			  
			    $('.user_hint').html("请输入用户名").css("color","red");
			    user_Boolean = false;
			   
			  }else {
				  $('.user_hint').html("✔").css("color","green");
				  user_Boolean = true;
			  }
			});
		
		
		$('.pwd').blur(function(){
		
			  if ($(".pwd").val()==""){
				  $('.password_hint').html("请输入密码").css("color","red");
				    password_Boolean = false;
			  }else {
			    
			    $('.password_hint').html("✔").css("color","green");
			    password_Boolean = true;
			  }
			});
		

	
		
		
	

	
		
		
		
		$('.submit').click(function(){
			
			if(user_Boolean == true|| password_Boolean == true){
				
				return true;
			}else{
				return false;
				
			}
			
			
			});
		
		
		
		
		
		
		
		
		
	});
	
	
  
  
  
  
  
  </script>
  </body>
</html>
